package com.hzdl.apple.service.back;

import java.util.List;

import com.hzdl.apple.bean.cart.Order;
import com.hzdl.apple.dao.back.BackOrderDao;
import com.hzdl.apple.dao.imp.back.BackOrderDaoImp;

public class BackOrderService {
	private BackOrderDao dao ;
	
	public BackOrderService(){
		dao = new BackOrderDaoImp();
	}
	
	public List<Order> getAllOrder(){
		return dao.getAllOrder();
	}
	
	public int getOrderNum(){
		return dao.getOrderNum();
	}
	
	public boolean updateUser(String oID, Order order) {
		return dao.updateUser(oID, order);
	}
	
	public boolean deleteOrder(String oID){
		return dao.deleteOrder(oID);
	}
	
	public List<Order> getCanOrder(){
		return dao.getCanOrder();
	}
	
	public boolean updateCanOrder(String oID){
		return dao.updateCanOrder(oID);
	}
}
